############################################################
# Created by 绝can (zouhualong1012@163.com)
############################################################

import bpy

class SEQUENCER_MT_shortcuts_menu(bpy.types.Menu):
    bl_label = 'Subsimport操作'
    bl_idname = 'sequencerextra.shortcuts_menu'

    def draw(self, context):
        layout = self.layout
        layout.separator()
        layout.operator('sequencerextra.shift_frame_start', text='吸附最近片段头至播放头')
        layout.operator('sequencerextra.shift_frame_end', text='吸附最近片段尾至播放头')
        layout.operator('sequencerextra.shift_frame_start_end', text='吸附最近片段头以及片段尾至播放头')
        layout.operator('sequencerextra.shift_frame_end_start', text='吸附最近片段尾以及片段头至播放头')
        layout.operator('sequencerextra.select_channel_left', text='选择播放头左侧片段')
        layout.operator('sequencerextra.select_channel_right', text='选择播放头右侧片段')
        layout.separator()
        # layout.operator('sequencerextra.reset_children', icon='FILE_REFRESH')

class SEQUENCER_OT_shortcuts_menu(bpy.types.Operator):
    bl_label = 'Subsimport Shortcuts Operator'
    bl_idname = 'sequencerextra.shortcuts_operator'
    bl_description = 'Subsimport Shortcuts Operator'

    def execute(self, context):
        bpy.ops.wm.call_menu(name=SEQUENCER_MT_shortcuts_menu.bl_idname)
        return {'FINISHED'}
